From: Jonny Lamb Date: Sun, 15 May 2011 09:07:23 +0000 (+0100) Subject: telepathyClient: don't update notifications for outgoing messages X-Git-Tag: archive/raspbian/50.5-1+rpi1~1^2~1013^2^2~8248 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=ffd461cdb435eb479010bc0831371684f9983f74;p=gnome-shell.git telepathyClient: don't update notifications for outgoing messages If you receive a message, a notification will appear. If you reply in Empathy's chat window before the notification disappears, the notification is updated with the contents of the message you *just* sent! We should only update notifications if they're incoming. https://bugzilla.gnome.org/show_bug.cgi?id=650219 Signed-off-by: Jonny Lamb --- diff --git a/js/ui/telepathyClient.js b/js/ui/telepathyClient.js index 252b2661f..18f4f88d7 100644 --- a/js/ui/telepathyClient.js +++ b/js/ui/telepathyClient.js @@ -411,7 +411,11 @@ Notification.prototype = { styles.push('chat-action'); } - this.update(this.source.title, messageBody, { customContent: true, bannerMarkup: true }); + if (message.direction == NotificationDirection.RECEIVED) { + this.update(this.source.title, messageBody, { customContent: true, + bannerMarkup: true }); + } + this._append(messageBody, styles, message.timestamp, noTimestamp); },